package com.blvtphan.tipocketclubs.api;

public class ApiConstant {

	// Server
	public static final String SERVER = "http://api-dev.tipocket.com/index-test.php/api/";
	
	// URL forgot pass
	public static final String FORGOT_PASS_URL = "http://tipocket.com/index.php/users/reset";
	
	// Others
	public static final String REQUEST_USER_LOGIN = "users/login";
	public static final String REQUEST_UPDATE_DEVICE_ID = "UpdateDeviceId";
	public static final String REQUEST_SEND_MSG = "SendMessage";
	public static final String REQUEST_GET_MERCHANTS = "merchants/clubHome?token={0}&club_id=6";
	public static final String REQUEST_GET_MERCHANTS_LIMIT = "merchants?token={0}&club_id={1}&start={2}&limit={3}";
	public static final String REQUEST_GET_TRACKER_SUMMARY = "transactions/clubTrans?token={0}&club_id=6";
	public static final String REQUEST_GET_TRACKER_DETAIL = "transactions/merchantTrans?token={0}&club_id=6&start=0&limit=10";
	public static final String REQUEST_POST_CHECK_MERCHANT_CODE = "merchants/checkMerchantCodeV1?token={0}";
	public static final String REQUEST_POST_SUBMIT_TRACKER = "transactions/create?token={0}";
	
	/**
	 * Enum service
	 */
	public static enum API {
		API_LOGIN,
		API_UPDATE_DEVICE_ID,
		API_SEND_MSG,
		API_GET_MERCHANTS,
		API_GET_TRACKER_SUMMARY,
		API_GET_TRACKER_DETAIL,
		API_GET_MERCHANTS_LIMIT,
		API_POST_CHECK_MERCHANT_CODE,
		API_POST_SUBMIT_TRACKER
	}
	
	/**
	 *
	 */
	public static class User {
		public static final String ID = "id";
		public static final String EMAIL = "email";
		public static final String PASSWORD = "password";
		public static final String FULL_NAME = "full_name";
		public static final String FULL_NAME_LG = "fullName";
		public static final String USER_FULL_NAME = "userFullName";
		public static final String DEVICE_ID = "device_id";
		public static final String FIRST_NAME = "first_name";
		public static final String LAST_NAME = "last_name";
		public static final String COMPANY = "company";
		public static final String AVATAR = "avatar";
		public static final String PHONE = "phone";
		public static final String TOKEN = "token";
	}
	
	/**
	 *
	 */
	public static class JsonType {
		public static final String META = "meta";
		public static final String DATA = "data";
	}
	
	/**
	 *
	 */
	public static class Message {
		public static final String ID = "id";
		public static final String USER_ID = "user_id";
		public static final String MESSAGE = "message";
		public static final String DATE = "date";
	}
	
	/**
	 *
	 */
	public static class MerchantDetails {
		public static final String ID = "id";
		public static final String NAME = "name";
		public static final String LOGO = "logo";
		public static final String MERCHANT_LOGO = "merchant_logo";
		public static final String ADDRESS = "address";
		public static final String CITY = "city";
		public static final String COUNTRY = "country";
		public static final String EMAIL = "email";
		public static final String WEBSITE = "website";
		public static final String USER_ID = "user_id";
		public static final String CODE = "code";
		public static final String LAT = "lat";
		public static final String LNG = "lng";
		public static final String STATUS = "status";
		public static final String MERCHANT_CATEGORY_ID = "merchant_category_id";
		public static final String CATEGORY_NAME = "category_name";
		public static final String REWARDS = "rewards";
		public static final String TOTAL = "total";
	}
	
	/**
	 *
	 */
	public static class Rewards {
		public static final String ID = "id";
		public static final String TITLE = "title";
		public static final String DISCOUNT_TEXT = "discount_text";
		public static final String FROM_DATE = "from_date";
		public static final String FROM_TIME = "from_time";
		public static final String TO_DATE = "to_date";
		public static final String TO_TIME = "to_time";
	}
	
	/**
	 *
	 */
	public static class MerchantsDataConfig {
		public static final String TOTAL = "total";
		public static final String START = "start";
		public static final String LIMIT = "limit";
		public static final String ROWS = "rows";
	}
	
	public static class TrackerSummary {
		public static final String TOTAL_SPENT = "total_spent";
		public static final String TOTAL_SAVED = "total_saved";
		public static final String TOTAL_USED = "total_used";
	}
	
	public static class TrackerDetail {
		public static final String ID = "id";
		public static final String NAME = "name";
		public static final String CATEGORY = "category_name";
		public static final String LOGO = "logo";
		public static final String VISIT_DATE = "visit_date";
		public static final String SPENT = "spent";
		public static final String SAVED = "saved";
		
	}
	
	public static class CheckMerchantCodeData {
		public static final String ID = "merchant_id";
		public static final String NAME = "merchant_name";
		public static final String REWARDS = "rewards";
	}
	
	public static class CheckMerchantCodeRewards {
		public static final String ID = "merchant_id";
		public static final String TITLE = "title";
		public static final String DISCOUNT = "discount";
		public static final String TYPE = "type";
		public static final String MERCHANT_ID = "merchant_id";
		public static final String FROM_DATE = "from_date";
		public static final String TO_DATE = "to_date";
		public static final String FROM_TIME = "from_time";
		public static final String TO_TIME = "to_time";
		
	}
}
